import React, { useState, forwardRef } from "react";

import { Button, Checkbox, Col, Row } from "antd";
import useRequest from "../../request";
// 不显示半选
const CheckList = () => {
  const { run: creat, data } = useRequest(
    {
      url: "/api/users",
      method: "POST",
    },
    { manual: true }
  );
  const handleClick = async () => {
    await creat({ id: 1, name: "张三" });
  };

  return (
    <div>
      <Button onClick={handleClick}>请求测试</Button>
    </div>
  );
};
export default CheckList;
